package cn.itcast.pojo;


import java.util.List;

/**
 * 订单表
 * 
 */
public class Order {
    private Long userId;
    private Integer id;
    private String orderNumber;
   //配置order和user一对一的关系
    private User user;

    @Override
    public String toString() {
        return "Order{" +
                "userId=" + userId +
                ", id=" + id +
                ", orderNumber='" + orderNumber + '\'' +
                ", user=" + user +
                ", orderdateils=" + orderdateils +
                '}';
    }

    public List<Orderdetail> getOrderdateils() {
        return orderdateils;
    }

    public void setOrderdateils(List<Orderdetail> orderdateils) {
        this.orderdateils = orderdateils;
    }

    //配置Order 和Orderdateil一对多的关系
    private List<Orderdetail>orderdateils;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
}
